package FrontEnd.Helper;

import java.rmi.Naming;

import BackEnd.ServerInterface;

public class ServerConnector {

	@SuppressWarnings("finally")
	public static ServerInterface getServer(){
		ServerInterface sI = null;
		try {
			String url = "rmi://rauch-systems.de/Server";
			//String url = "rmi://127.0.0.1/Server";
			sI = (ServerInterface)Naming.lookup(url);
			}
		    catch (Exception ex)
		    {
		    	//System.out.println("Fehler bei Server holen");
		    }
			finally{ return sI; }
	} 

}
